package lac.serviceuint.cfg;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
/**
 * 逻辑
 * @author zhiyi.zhao
 *
 */
@XStreamAlias("logic")
public class Logic implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7788205192480080819L;
	
	@XStreamAsAttribute
	private String id;
	@XStreamAsAttribute
	private String name;
	@XStreamAsAttribute
	private String javaClassName;
	@XStreamAsAttribute
	private String beanMode = BeanMode.Spring.name();
	@XStreamAsAttribute
	private Integer sort;
	@XStreamAsAttribute
	private String describe;
	@XStreamOmitField
	private Method method;
	
	public Logic() {
		// TODO Auto-generated constructor stub
	}
	
	public Logic(String name,String javaClassName) {
		this.name = name;
		this.javaClassName = javaClassName;
	}
	public Logic(String name,String javaClassName,int sort) {
		this.name = name;
		this.javaClassName = javaClassName;
		this.sort = sort;
	}
	public Logic(String name,String javaClassName,int sort,Method method) {
		this.name = name;
		this.javaClassName = javaClassName;
		this.sort = sort;
		this.method = method;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public String getJavaClassName() {
		return javaClassName;
	}
	public void setJavaClassName(String javaClassName) {
		this.javaClassName = javaClassName;
	}
	
	public String getBeanMode() {
		return beanMode;
	}
	public void setBeanMode(String beanMode) {
		this.beanMode = beanMode;
	}
	public Method getMethod() {
		return method;
	}
	public void setMethod(Method method) {
		this.method = method;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	

}
